<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Conf\ConfModel;

use Srv\Libs\ConfModel\ConfAbstract;

final class GPlayAuthConf extends ConfAbstract
{
    public const PREFIX                         = 'GPLAYAUTH.';         // 配置前缀[必定点结尾]
    private string $groupName                   = '';                   // 分组名
    protected string $androidBundleId           = '';                   // Google-BundleId
    protected string $projectId                 = '';                   // Google-ProjectId
    protected string $secretKeyFile             = '';                   // Google-Developer 密钥文件[.json]

    /**
     * @param array $confData
     * @param string $groupName
     */
    public function __construct(array $confData, string $groupName)
    {
        $this->init($confData);
        $this->groupName = $groupName;
    }

    /**
     * @return string
     */
    public function getGroupName(): string
    {
        return $this->groupName;
    }

    /**
     * @return string
     */
    public function getAndroidBundleId(): string
    {
        return $this->androidBundleId;
    }

    /**
     * @return string
     */
    public function getProjectId(): string
    {
        return $this->projectId;
    }

    /**
     * @return string
     */
    public function getSecretKeyFile(): string
    {
        return $this->secretKeyFile;
    }
}